-- GENERATED SPELL FOR [Retherokk the Berserker] --


function spell0_8216(pUnit, Event) --@Enrage,Self--
pUnit:FullCastSpellOnTarget(8599,pUnit)
pUnit:RegisterEvent('Sorts_8216', 574, 1)
end

function spell1_8216(pUnit, Event) --@Thrash,Self--
pUnit:FullCastSpellOnTarget(3391,pUnit)
pUnit:RegisterEvent('Sorts_8216', 561, 1)
end

function Sorts_8216(pUnit, Event)
local choix_sorts_8216 = math.random(0, 1)
if choix_sorts_8216 == 0 then
pUnit:RegisterEvent('spell0_8216', 1, 1)
end
if choix_sorts_8216 == 1 then
pUnit:RegisterEvent('spell1_8216', 1, 1)
end
end

function mob8216_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_8216', math.random(1500, 3000), 1)
end

function mob8216_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob8216_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob8216_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(8216, 1, 'mob8216_Action')
RegisterUnitEvent(8216, 2, 'mob8216_Leave')
RegisterUnitEvent(8216, 3, 'mob8216_Kill')
RegisterUnitEvent(8216, 4, 'mob8216_Die')
